package com.sbm.merge.设计模式.adapter;

public class Test {

    public static void main(String[] args) {

        AmericanCharger americanCharger = new AmericanCharger();
        UniversalCharger universalCharger = new AmericanChargerAdapter(americanCharger);
        int charge = universalCharger.charge();

        System.out.println(charge);

        System.out.println("===========================================================");
        EuropeanCharger europeanCharger = new EuropeanCharger();
        UniversalCharger universalCharger0 = new EuropeanChargerAdapter(europeanCharger);
        int charge0 = universalCharger0.charge();

        System.out.println(charge0);
    }

}
